#include "syscall.h"


void test3_c2()
{
	int lock=0;
	int condition=0;
	WriteFormat("----------Test case III----------\n",35,0,0);
	WriteFormat("Test 3: Client 2 is ready, waiting for main thread to Sleep\n",61,0,0);
	RemoteAcquireLock(lock);
	
	WriteFormat("Test 3: Main thread has been sleeping, Signal Condition %d to Wake Him Up\n",75,&condition,1);
	WaitInput();
	RemoteSignalCondition(condition,lock);

	RemoteReleaseLock(lock);
	WriteFormat("----------   Test end  ----------\n",35,0,0);
	Exit(0);
}

int main()
{
	test3_c2();
}
